Promote code page warning to error in Garmin GPI. Add section on this to doc.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 15 Feb 2014 21:24:01 +0000 (21:24 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 15 Feb 2014 21:24:01 +0000 (21:24 +0000)
gpsbabel/garmin_gpi.cc
gpsbabel/xmldoc/formats/garmin_gpi.xml

index 68867a521be2ea6fec615f8a4a5d2cff13a38f56..99db4bef4119eb39e95412a3a77986490251933a 100644 (file)
@@ -1491,7 +1491,7 @@ garmin_gpi_rd_init(const char* fname)
     snprintf(cp, sizeof(cp), "CP%d", codepage);
     cet_convert_init(cp, 1);
   } else {
-    warning(MYNAME ": Unsupported code page (%d).\n", codepage);
+    fatal(MYNAME ": Unsupported code page (%d). File is likely encrypted.\n", codepage);
   }
 
   units = tolower(opt_units[0]);
index 6aef80b9a17b6065c53ce16ab1533bc278a818be..005e922025e37a5265cc58b6ab2f6e83746a46f7 100644 (file)
@@ -4,6 +4,13 @@
    <ulink url="http://www.garmin.com/support/agree.jsp?id=927">Garmin POI-Loader</ulink> is the standard application that creates GPI files
    with all possible features.
 </para>
+<para>
+  Some of the third party and commercial GPI files are using some kind of
+  encryption or compression that makes the file contents completely unreadable
+  to us. If you get an error "Unsupported code page NNN. File is likely
+   encrypted." means we could basically recognize it as a Garmin GPI file,
+   but it's mangled beyond what we're likely to successfully read.
+</para>
 <para>
    The layout of GPI files isn't documented and our module was created
    via reverse engineering. If you get a problem on reading or writing